#include<bits/stdc++.h>
#include "priority_queue.h"



int main(int argc, char * argv[])
{
  std::vector<DataBase<int, double>> input_vector;
  std::cout <<" Please input the number of element: ";
  priority_queue<int, double> queue;
  int N=10;
  for( int i = N; i>=q; i--)
    {
      DataBase<int, double> element;
      element.data = std::sin(i*i*i + i*i +i);
      element.Key = i;
      input_vector.push_back(element);
    }

  for( auto i:input_vector)
    {
      std::cout<< i.Key<<" "<< i.data<< std::endl;
    }
  std::cout<<"\n";
  queue.buildHeap( input_vector );
  std::cout<<"\n";
  std::cout<<"size of queue:"<<queue.sizeofqueue()<<std::endl;
  queue.printArray();
  queue.modifyData(9, -0.816708);
  queue.remove(6);
  while( !queue.isEmpty())
    {
      auto t = queue.deleteMin();
      std::cout << t.Key<<" "<<t.data<<std::endl;
    }
  return 0;
}
